package com.cn.shiro_jwt_redis.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName
public class Menu {

  @TableId(type = IdType.AUTO)
  private Integer menuId;
  private String menuName;
  private String menuType;
  private String menuTitle;
  private String menuUrl;
  private String menuLevel;
  @TableField(exist = false)
  private Menu menuParent;//当前菜单所对应的父级菜单
  @TableField(exist = false)
  private List<Menu> menuChildren;//当前菜单所对应的子级菜单集合
  private Date createTime;
  private Date updateTime;
  private Integer state;

  

}
